﻿using System;

namespace Remoting.Reactive
{
    public static class Guard
    {
        public static void Requires<TException>(bool predicate)
            where TException : Exception, new()
        {
            if (!predicate)
            {
                throw new TException();
            }
        }
    }
}
